package com.hncgy.xzf.jdapi.mapper.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hncgy.xzf.jdapi.domain.product.po.Products;
import com.hncgy.xzf.jdapi.domain.product.vo.ProductDetailsVO;
import com.hncgy.xzf.jdapi.domain.product.vo.ProductSeckillVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author 不会代码的蜡笔
 * @since 2025-10-31
 */
public interface ProductsMapper extends BaseMapper<Products> {

    ProductDetailsVO selectProductDetailsById(@Param("productId") Integer productId);

    ProductSeckillVO selectSeckillDetailsById(@Param("productId")  Integer productId , @Param("promotionId") Integer promotionId);

}
